﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _06建造者设计模式
{
    /// <summary>
    /// 产品类
    /// </summary>
    public class Computer
    {
        private List<string> _servers = new List<string>();
        public void AddPart(string part)
        { 
        _servers.Add(part);
        }
        public void ShowComputer()
        {
            foreach (var item in _servers)
            {
                Console.WriteLine($"正在安装{item}");
            }
        }
    }
}
